package com.bjfu.demo.dto;

import java.util.Date;

import com.bjfu.demo.entity.SiteData;

import lombok.Data;

/**
 * Created on 2021-04-29
 */
@Data
public class RankingVo extends SiteData implements Comparable<RankingVo>{


    private Double col1;


    private Double maxcol1;


    private Date lastupdatetime;


    @Override
    public int compareTo(RankingVo o) {

        Double me = this.col1;


        Double you = o.col1;


        if (me > you){
            return -1;
        }else if (me < you){
            return  1;
        }else {
            return 0;
        }


    }
}
